using System;
using System.Linq;
using System.Reflection;

namespace Duhking
{
    public class StandardMethodFinder : BaseMethodFinder, IFindMethod
    {
        public MethodInfo FindMatchingMethod(MethodInfo method, Type targetType)
        {
            return targetType.GetMethods().FirstOrDefault(m => _methodComparer.Equals(method,m));
        }
    }
}
